package com.peas.platform.module.icims.base.sys.domain.impl;

import com.peas.platform.framework.mybatisplus.domain.BaseDomainImpl;
import com.peas.platform.framework.mybatisplus.repository.BaseRepository;
import com.peas.platform.module.icims.base.sys.adapter.repository.AttachmentRepository;
import com.peas.platform.module.icims.base.sys.adapter.repository.po.AttachmentPo;
import com.peas.platform.module.icims.base.sys.domain.AttachmentDomain;
import com.peas.platform.module.icims.base.sys.dto.AttachmentDto;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class AttachmentDomainImpl extends BaseDomainImpl<AttachmentDto, AttachmentPo> implements AttachmentDomain {

    @Resource
    private AttachmentRepository attachmentRepository;

    @Override
    public BaseRepository<AttachmentPo> getMapper() {
        return attachmentRepository;
    }

    @Override
    public Class<? extends BaseRepository<AttachmentPo>> getRepositoryClass() {
        return AttachmentRepository.class;
    }

}
